// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from './axios'
import store from './store'
// 引入qs
// import qs from 'qs'
import { HOST } from './baseUrl'
// 引入组件
import ElementUI from 'element-ui';
// 引入样式
import 'element-ui/lib/theme-chalk/index.css';
// 使用中间件
Vue.use(ElementUI)
Vue.config.productionTip = false

// 替换vue本来的http模块
Vue.prototype.$http = axios;
// 全局添加服务器地址
Vue.prototype.$HOST = HOST;
// Vue.prototype.$qs = qs;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
